<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Insert title here</title>
	</head>
	<body>
		<div>
			<h1 id="page_title">
				用户列表
			</h1>
			<div>
				<table>
					<tr>
						<td>
							ID
						</td>
						<td>
							用户名称
						</td>
						<td>
							状态
						</td>
						<td>
							操作
						</td>
					</tr>
					<c:forEach  var="user"
						items="${pagination.results}">
						<tr>
							<td>
								${user.id }
							</td>
							<td>
								${user.userName }
							</td>
							<td>
								${user.status }
							</td>
							<td>
								<a href="modifyUser.action?id=${user.id }">修改用户</a>/
								<a href="delUser.action?id=${user.id }">删除角色</a>
							</td>
						</tr>
					</c:forEach>
				</table>
				<div class="pagination">
					<ul>
						<li>
							${pagination.size }条/页
						</li>
						<li>
							${pagination.pageSum }页
						</li>
						<li>
							${pagination.recordSum }条
						</li>
						<c:if test="${!pagination.first}">
							<li>
								<a
									href="findUser.action?pagination.no=1&filtername=${filtername }&c_value=${value_u }">首页</a>
							</li>
						</c:if>
						<c:if test="${pagination.previous}">
							<li>
								<a
									href="findUser.action?pagination.no=${pagination.no-1 }&filtername=${filtername }&c_value=${value_u }">上页</a>
							</li>
						</c:if>
						<c:if test="${pagination.next}">
							<li>
								<a
									href="findUser.action?pagination.no=${pagination.no+1 }&filtername=${filtername }&c_value=${value_u }">下页</a>
							</li>
						</c:if>
						<c:if test="${!pagination.last&&pagination.no>0}">
							<li>
								<a
									href="findUser.action?pagination.no=${pagination.pageSum }&filtername=${filtername }&c_value=${value_u }">末页</a>
							</li>
						</c:if>
					</ul>
				</div>
			</div>
		</div>
	</body>
</html>